//
//  DetailView.m
//  UI16.真.豆瓣
//
//  Created by dllo on 15/10/30.
//  Copyright © 2015年 Amydom. All rights reserved.
//

#import "DetailView.h"



@implementation DetailView

-(void)dealloc{
    [_partPlotLabel release];
    [_plotLabel release];
    [_particularWriteLabel release];
    [_writersLabel release];
    [_countryLabel release];
    [_moldLabel release];
    [_runtimeLabel release];
    [_timeLabel release];
    [_rating_countLabel release];
    [_gradeLabelG release];
    [_gradeLabel release];
    [_movieDetaImage release];
    [super dealloc];
    
    
}


- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        [self CreatSubView];
        
    }
    return self;
    
}


- (void)CreatSubView{
    
    self.movieDetaImage = [[UIImageView alloc]initWithFrame:CGRectMake(15, 25, 150, 240)];
    [self addSubview:self.movieDetaImage];
    [_movieDetaImage release];
    
    self.gradeLabel = [[UILabel alloc]initWithFrame:CGRectMake(185, 27, 120, 30)];
    self.gradeLabel.text = @"评分:";
    [self addSubview:self.gradeLabel];
    [_gradeLabel release];
    
    self.gradeLabelG = [[UILabel alloc]initWithFrame:CGRectMake(230, 27, 30, 30)];
    [self addSubview:self.gradeLabelG];
    [_gradeLabelG release];
    
    self.rating_countLabel = [[UILabel alloc]initWithFrame:CGRectMake(270, 27, 110, 30)];
    [self addSubview:self.rating_countLabel];
    [_rating_countLabel release];
    
    self.timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(185, 77, 110, 30)];
    [self addSubview:self.timeLabel];
    [_timeLabel release];
    
    
    self.runtimeLabel = [[UILabel alloc]initWithFrame:CGRectMake(185, 127, 110, 30)];
    [self addSubview:self.runtimeLabel];
    [_runtimeLabel release];
    
    
    self.moldLabel = [[UILabel alloc]initWithFrame:CGRectMake(185, 177, 180, 30)];
    [self addSubview: self.moldLabel];
    [_moldLabel release];
    
    self.countryLabel = [[UILabel alloc]initWithFrame:CGRectMake(185, 227, 110, 30)];
    [self addSubview:self.countryLabel];
    [_countryLabel release];
    
    
    self.writersLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 290, 150, 50)];
    self.writersLabel.text  = @"制作人";
    self.writersLabel.font = [UIFont boldSystemFontOfSize:20];
    [self addSubview:self.writersLabel ];
    [_writersLabel release];
    
    self.particularWriteLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 345, 350, 120)];
    [self addSubview:self.particularWriteLabel];
    [_particularWriteLabel release];
    
    
    self.plotLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 420, 150, 50)];
    self.plotLabel.text = @"电影情节";
    self.plotLabel.font = [UIFont boldSystemFontOfSize:20];
    [self addSubview: self.plotLabel];
    [_plotLabel release];
    
    
    self.partPlotLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 475, 350, 667)];
    [self addSubview:self.partPlotLabel];
    [_partPlotLabel release];
    
    
    
}
@end
